package com.fgr.service;

import com.fgr.beans.Admin;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface AdminService {
    public List<Admin> allAdmin();

    public Admin findAdminById(Integer glId);

    public Admin findAdminByUsername(String glUsername);

    public String AdminLogin(Admin admin, HttpSession httpSession);

    public String AddAdmin(Admin admin);

    public String UpdateAdmin(Admin admin);

    public String DeleteAdmin(Integer glId);
}
